﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<HistoryModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
   <%:Resources.History_Failed %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="maincontent">
        <div id="tab">
            <ul id="tabs">
                <li rel="my" class="current"><%:Html.ActionLink(Resources.All_My, "Failed", "History", new { category = "self" }, null)%></li>
                <%--<li rel="group"><%:Html.ActionLink("Group", "Failed", "History", new { category = "group" }, null)%></li>--%>
                <%if (Model.IsAdmin)
                  {  %>
                <li rel="company"><%:Html.ActionLink(Resources.All_All, "Failed", "History", new { category = "company" }, null)%></li>
                <%} %>
            </ul>
            <div class="clear">
            </div>
        </div>
        <div id="tabcontent">
            <div class="tab" id="my">
                <h2>
                  <%:Resources.History_Failed %><div class="searchbox">
                    <% using (Html.BeginForm("Failed", "history", FormMethod.Get))
                       {  %>
                        <input name="key" type="text" class="searchbox" value="<%:Model.key %>"/><input type="submit" value="GO"
                            name="" class="searchbutton"></div>
                            <%} %>
                </h2>
                <div id="datagrid" class="">
                    <% using (Ajax.BeginForm("resentordeleteMessages", "history", new AjaxOptions { HttpMethod = "POST", UpdateTargetId = "failed", Confirm = "Are You Sure to do this action" }, FormMethod.Post))
                       { %>
                    <div id="failed">
                        <%Html.RenderPartial("Historygrid_failed"); %>
                        <%--<table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="46%" class="button">
                                <input type="button" name="selectall" class="button" value="全选" />
                                <input type="hidden" name="batchid" value="<%: Model.BatchId %>" />
                                <input type="submit" name="todo" value="删除" class="button" />
                                <input type="submit" name="todo" value="重发" class="button" />
                            </td>
                            <td width="54%" align="right" class="pagination">
                                
                                <% Html.ShowPagination(Model.page, Model.PageCount, Model.key, Url.Content("~/Content/images/page_previou_icon.gif"), Url.Content("~/Content/images/page_next_icon.gif")); %>
                                <div class="clear">
                                </div>
                            </td>
                        </tr>
                    </table>--%>
                    </div>
                    
                    <% } %>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <link rel="stylesheet" type="text/css" href="<%:Url.Content("~/Content/css/themes/default/easyui.css")%>" />
<%--    <link href="<%:Url.Content("~/Content/css/common.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%:Url.Content("~/Content/css/headerfooter.css")%>" rel="stylesheet" type="text/css" />--%>
    <link href="<%:Url.Content("~/Content/css/failed.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%:Url.Content("~/Content/css/icons.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%:Url.Content("~/Content/js/jquery.alcatel.failed.js")%>" type="text/javascript"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.alcatel.datagrid.js")%>" type="text/javascript"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.mask.js")%>" type="text/javascript"></script>
    <script src="<%:Url.Content("~/Content/js/jquery.easyui.js")%>" type="text/javascript"></script>
</asp:Content>
